package com.owen.clickhouse.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class MonitorPoorDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public List<Map<String, Object>> getMonitorPoor(){
        List<Map<String, Object>> maps = jdbcTemplate.queryForList("select * from monitor_poor limit 10");
        return maps;
    }

}
